{extend name="public/base"/}
 {block name="content"}
  <section class="content">
            <div class="col-md-9" style="width:100%">
              <div class="box box-default">
			<div class="box-header">
				<h3 class="box-title">
				<a href="{:U('Album/index')}" class="btn btn-primary">相册列表</a>
				</h3>
				 <h3 class="box-title">
				<a href="{:U('Album/add')}" class="btn btn-primary">添加相册</a>
				</h3> 
				<h3 class="box-title">
				<a href="{:U('Album/album_index')}" class="btn btn-primary">类别列表</a>
				</h3> 
				<h3 class="box-title">
				<a href="{:U('Album/album_add')}" class="btn btn-primary">添加类别</a>
				</h3> 
				
				
			</div>
				<!-- /.box-header -->
                <!-- form start -->
                  <form action="{:U('Album/postEdit')}" method="post">
					  <input  type="hidden" name="id" value="{$_GET['id']}">
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-12">
                      <table class="table table-bordered">
					  	<!-- 不允许修改类别 就删除了 -->
						
                        <tr>
                            <th width="140">名称:</th>
                            <td><input class="form-control" type="text" name="name" value="{$edit.name}" size="30"></td>
                        </tr>
						              <tr>
                            <th width="140">相册图片:</th>
                            <td>
                                                                <!-- 上传文件 -->
                                <div id="logo" class="wu-example-one" name="logo">
                                    <!--用来存放文件信息-->
                                    <div id="thelist-logo" class="uploader-list">
                                        <?php if(!empty($edit['logo'])){ ?>
                                        <div class="item">
                                 <input type="hidden" name="logo" value="{$edit.logo}" />
                                {if condition="$edit['logo'] eq ''"}
                                  <img style="max-width:300px;max-height:200px" src="__UPLOADS__success/success.png" />
                                  {else /}
                                   <img style="max-width:300px;max-height:200px" src="__UPLOADS__{$edit.logo}" />                                 
                                 {/if}
                                            <a class="remove-img"><i class="fa fa-remove"></i>删除图片</a>
                                        </div>
                                        <?php }; ?>
                                    </div>
                                    <div class="btns" style="margin-top: 15px;">
                                        <div class="picker" id="picker-logo">图片上传</div>
                                    </div>
                                </div>
                                <!-- 上传文件 -->
                            </td>
                         </tr>

                          <tr>
                            <th width="140">视频封面图:</th>
                            <td>
                                                                <!-- 上传文件 -->
                                <div id="cimg" class="wu-example-one" name="cimg">
                                    <!--用来存放文件信息-->
                                    <div id="thelist-cimg" class="uploader-list">
                                        <?php if(!empty($edit['cimg'])){ ?>
                                        <div class="item">
                                 <input type="hidden" name="cimg" value="{$edit.cimg}" />
                                {if condition="$edit['cimg'] eq ''"}
                                  <img style="max-width:300px;max-height:200px" src="__UPLOADS__success/success.png" />
                                  {else /}
                                   <img style="max-width:300px;max-height:200px" src="__UPLOADS__{$edit.cimg}" />                                 
                                 {/if}
                                            <a class="remove-img"><i class="fa fa-remove"></i>删除图片</a>
                                        </div>
                                        <?php }; ?>
                                    </div>
                                    <div class="btns" style="margin-top: 15px;">
                                        <div class="picker" id="picker-cimg">视频封面图上传</div>
                                    </div>
                                </div>
                                <!-- 上传文件 -->
                            </td>
                         </tr>

						   <tr>
                            <th width="140">链接:</th>
                            <td><input class="form-control" type="text" name="links" value="{$edit.links}" size="30">
							<span style="color:red">*格式如http://www.baidu.com</span>
							</td>
								
                        </tr>

                      </table>
                    </div>
                  </div>
                </div>
                <div class="box-footer">
                  <button type="submit" class="btn btn-primary">确认修改</button>
                </div>
                </form>
              </div><!-- /.box -->
            </div>
			<!-- /.col -->
			</section>
 {/block}
